export default (initialState: API.IUser) => {
  console.log('initialState', initialState);

  return {
    isAdmin: initialState.role?.isAdmin,
    isEditor: initialState.role?.isEditor,
    isRoot: () => true,
    canAccess: (route: any) => {
      console.log(route);

      return route.path === '/user2';
    },
  };
};
